﻿using System;
using PP = Microsoft.Office.Interop.PowerPoint;


namespace ThePresenter.Interop
{
	public static class PowerPoint
	{
		#region Properties
		/// <summary>
		/// Gets a value indicating whether office interop is  supported.
		/// </summary>
		/// <value><c>true</c> if office interop is supported; otherwise, <c>false</c>.</value>
		public static bool IsOfficeInteropSupported
		{
			get
			{
				try
				{
					var pp = new PP.Application();

					return true;
				}
				catch (Exception)
				{
					return false;
				}
			}
		}
		#endregion
	}
}
